<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>原型的初步认识</title>
</head>
<body>
    <script>
        let arr = [1,2,3];
        console.log(arr);   //有三代

        let obj = {
            name : "xiasnn"
        };
        console.log(obj);   //只有两代

        let obj1 = {};
        // 判断两个对象的原型是否相等
        console.log(Object.getPrototypeOf(obj) == Object.getPrototypeOf(obj1));
    </script>
</body>
</html>